package com.tbvtc.agriculturalcreditchainserver2025.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.fisco.bcos.sdk.abi.datatypes.Int;

/**
 * <p>
 *
 * </p>
 *
 * @author syh
 * @since 2025-04-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("crop")
public class Crop implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID,主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 农作物名称
     */
    private String name;

    /**
     * 农户手机号
     */
    private String phone;

    /**
     * 0未成熟，1成熟
     */
    private String isMature;

    /**
     * 农作物图片
     */
    private String cropImage;

    /**
     * 农作物分类
     */
    private String cropCategory;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 土地名称
     */
    private String landName;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 能否预约
     */
    private Boolean isPreorder;
    /**
     * 是否病虫害
     */
    private Integer isPest;
    /**
     * 是否上架
     */
    private Integer isSale;

}
